﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace OnlineCourse.Model.Entity
{
    /// <summary>
    /// 支付类型设置
    /// </summary>
    public class PaymentType
    {
        public PaymentType()
        {
            CreatedDate = DateTime.Now;
            UpdatedDate = DateTime.Now;
        }
        public Guid Id { get; set; }
        /// <summary>
        /// 付款类型标题（如6元、68元、218元、418元、648元、998元）
        /// </summary>
        [MaxLength(50)]
        public string Title { get; set; }
        /// <summary>
        /// 实际需要支付金额
        /// </summary>
        public decimal Price { get; set; } 
        /// <summary>
        /// 用户账户实际增加金额
        /// </summary>
        public decimal AccountMoney { get; set; }
        /// <summary>
        /// 订单集合
        /// </summary>
        public ICollection<PayOrder> PayOrders { get; set; }
        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }
    }
}
